﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TimeTable
{
	public class Builder
	{
		static Builder instance;
		public static Builder Instance
		{
			get { return instance; }
		}

		Table table;
		Subjects subj;

		public Builder(List<SubjectItem> si, List<TableItem> ti)
		{
			instance = this;
			table = new Table(ti);
			subj = new Subjects(si);
		}

		public Table GetTable()
		{
			return table;
		}

		public Subjects GetSubjects()
		{
			return subj;
		}
	}
}
